package com.atgouwu.mall.controller;

import com.atgouwu.mall.service.WxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/wx")
public class WxController {

    @Autowired
    private WxService wxService;

    @RequestMapping("/getWxInfo")
    @ResponseBody
    public String getWxInfo(@RequestParam("id") Long id) {
        String info = wxService.getWxInfo(id);
        return info;
    }

}
